home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / olrdrs / qwktxt46.zip / QWKTXT46.H < prev    next >
C/C++ Source or Header  |  1993-12-25  |  4KB  |  73 lines

  1. #define STUFF_SIZE 129                      /* buffer size for fgets        */
  2. #define ASIZE 6550                          /* determines # of conferences  */
  3.                                             /* we can handle                */
  4.  
  5. #define VERSION  "4.60"                     /* version number               */
  6. #define REL_DATE "Dec. 25, 1993"            /* release date (keep format!)  */
  7.  
  8. #define ARC     1                           /* Result code for ARC(TM)      */
  9. #define ZOO     2                           /* Result code for ZOO          */
  10. #define ARJ     3                           /* Result code for ARJ          */
  11. #define LHARC   4                           /* Result code for LHARC        */
  12. #define LHA     5                           /* Result code for LHA          */
  13. #define ZIP     6                           /* Result code for ZIP          */
  14. #define UNKNOWN 10                          /* Result code for UNKNOWN      */
  15.  
  16. unsigned personal = 0;                      /* count of personal messages   */
  17. unsigned MsgsPerConference = 0;             /* count of messages/conference */
  18. unsigned TotalMsgsInQWK = 0;                /* count of messages in packet  */
  19.  
  20. int arctype = 0;                            /* archive type returned from   */
  21.                                             /* whicharc() function          */
  22.  
  23. char zipflag;                               /* flag telling whether to use  */
  24.                                             /* pkunzip.exe or unzip.exe     */
  25.  
  26. struct hdr                                  /* message header structure     */
  27. {
  28.    char _private;                           /* first byte is privacy flag   */
  29.                                             /* ' ' means mail has been read */
  30.                                             /* '-' means not read           */
  31.                                             /* '+' means private message    */
  32.    char _msg[7];                            /* message number in ASCII      */
  33.    char _date[8];                           /* date in ASCII (mm-dd-yy)     */
  34.    char _time[5];                           /* time in ASCII (hh:mm)        */
  35.    char _to[25];                            /* name of receiver             */
  36.    char _from[25];                          /* name of sender               */
  37.    char _subj[25];                          /* message subject              */
  38.    char _pass[12];                          /* message password (obsolete)  */
  39.    char _ref[8];                            /* msg refers to this msg #     */
  40.    char _count[6];                          /* # of 128-byte blocks in msg  */
  41.    char _active;                            /* message status flag          */
  42.                                             /*    225 (0xE1) == active      */
  43.                                             /*    226 (0xE2) == killed      */
  44.    char _confnum[2];                        /* conference number            */
  45.    char _lognum[2];                         /* logical message number       */
  46.                                             /*  currently only used by      */
  47.                                             /*  1st Reader                  */
  48.    char _nettag;                            /* network tag - if non-zero,   */
  49.                                             /*  message has network tagline */
  50. } header;
  51.  
  52.  
  53.  
  54. struct conf                                 /* conference header structure  */
  55. {
  56.    int _num;                                /* conference number            */
  57.    int _msgs;                               /* # of msgs in conference      */
  58.    char _name[15];                          /* conf. name (14 chars max)    */
  59. } confs[ASIZE];
  60.  
  61. /* prototypes for ANSI C */
  62.  
  63. void _cdecl main(int argc, char **argv);
  64. void strip(char *s);
  65. char *byp(char *s);
  66. int  nummsg(int n);
  67. int  readblk(FILE *fp, char *buff);
  68. int  readhdr(FILE *fp);
  69. void strncp(char *d, char *s, int n);
  70. void sep(FILE *fp);
  71. void _cdecl erase(char *pathname);
  72. int WhichArc(char *pName);
  73.